﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AcroPDFLib;
using AxAcroPDFLib;


namespace SOM.UI
{
    public partial class GuideForm : Form
    {
        public GuideForm(string filename)
        {
            InitializeComponent();
            this.axAcroPDF1.LoadFile(Application.StartupPath+"\\ug.pdf");
            this.Show();
        }

        private void axAcroPDF1_OnError(object sender, EventArgs e)
        {
            MessageBox.Show("Failed to open UserGuide.Check that you have Adobe Acrobat Reader installed.");
            Console.WriteLine("Failed to Open UserGuide Pdf file.");
        }
    }
}
